package com.example.pkmedical.Activity.weight.options;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.pkmedical.APP.MyApp;
import com.example.pkmedical.Activity.weight.weightdevice.WeightCantStartActivity;
import com.example.pkmedical.Activity.weight.weightdevice.WeightDeviceBedActivity;
import com.example.pkmedical.Base.BaseActivity;
import com.example.pkmedical.R;
import com.example.pkmedical.Utils.CommandUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class OptionAddActivity extends BaseActivity {

    @BindView(R.id.add_button_ok)
    Button addButtonOk;
    @BindView(R.id.add_button_cancle)
    Button addButtonCancle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_optionadd);
        ButterKnife.bind(this);
    }

    @Override
    public void initData() {

    }

    @Override
    public void initView() {

    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void showDialog(String... msg) {

    }

    @OnClick({R.id.add_button_ok, R.id.add_button_cancle})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.add_button_ok:
                if (CommandUtil.HOUBEI_ISZERO && CommandUtil.CHUANGTI_ISZERO) {
                    startActivity(new Intent(MyApp.getAppContext(), OptionRemindActivity.class));
                    CommandUtil.ADD_PLUS_TYPE = 1;
                } else {
                    startActivity(new Intent(MyApp.getAppContext(), WeightCantStartActivity.class));
                }

//                overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
                break;
            case R.id.add_button_cancle:
                finish();
                break;
        }
    }
}
